/**
 * Copyright  (c) 2009-2013 XLab,  Org. 
 * All  rights  reserved. 
 */
package org.xlab.baseframework.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0 Sep 8, 2010
 * @since 1.0.0
 * 
 */
@MappedSuperclass
public abstract class AbstractNormalDomainObject implements INormalDomain {

	public static final String FIELD_CREATED_BY = "createdBy";
	public static final String FIELD_CREATED_TIME = "createdTime";
	public static final String FIELD_LASTUPDATED_BY = "lastUpdatedBy";
	public static final String FIELD_LASTUPDATED_TIME = "lastUpdatedTime";

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = -2475097758071795502L;
	
	@Column(name = "CREATED_BY")
	protected String createdBy;

	@Column(name = "CREATED_TIME")
	protected Date createdTime;
	@Column(name = "LASTUPDATED_BY")
	protected String lastUpdatedBy;
	@Column(name = "LASTUPDATED_TIME")
	protected Date lastUpdatedTime;
	/**
	 * 默认构造函数 
	 */
	public AbstractNormalDomainObject() {
		super();
	}

	/**
	 * @return the createdBy
	 */
	public String getCreatedBy() {
		return createdBy;
	}

	/**
	 * @return the createdTime
	 */
	public Date getCreatedTime() {
		return createdTime;
	}

	/**
	 * @return the lastUpdatedBy
	 */
	public String getLastUpdatedBy() {
		return lastUpdatedBy;
	}

	/**
	 * @return the lastUpdatedTime
	 */
	public Date getLastUpdatedTime() {
		return lastUpdatedTime;
	}

	/**
	 * @param createdBy
	 *            the createdBy to set
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * @param createdTime
	 *            the createdTime to set
	 */
	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * @param lastUpdatedBy
	 *            the lastUpdatedBy to set
	 */
	public void setLastUpdatedBy(String lastUpdatedBy) {
		this.lastUpdatedBy = lastUpdatedBy;
	}

	/**
	 * @param lastUpdatedTime
	 *            the lastUpdatedTime to set
	 */
	public void setLastUpdatedTime(Date lastUpdatedTime) {
		this.lastUpdatedTime = lastUpdatedTime;
	}

}
